developed with YouTube

Finite State Machine